
public class Strs {

    public static String[] split(String url) {
        return url.split("/");
    }

    public static String[] split1(String s) {
        return s.substring(s.length() == 2 ? 2 : 3).split("/");
    }

    public static String adjust(String t) {
        if (t.startsWith("http://")) return t;
        return t.contains("/") ? "http://" + t : "http://" + t + ":8888/r";
    }


    public static String toSize(long t) {
        String[] ss = {"", "K", "M", "G", "T", "P", "E"};
        for (int i = 0; i <= 6; i++)
            if (t < Math.pow(1000, i + 1))
                return (t >>> (i * 10)) + ss[i] + "B";
        return "amazing size";
    }

}